
<style>
	th {
		text-align: center;
	}
	
	.table>tbody>tr>td {
		line-height: 60px;
		text-align: center;
		height: 50px;
		margin: 0px;
	}
</style>
<div id="data_page" class="in_page">
	<div class="panel panel-default">
		<div class="panel-body">
			<!-- <form class="form-inline" action="{:U('Bbs/index')}" method="get" name="keyword" id="keyword">
				<div class="form-group">
				<input type="text" class="form-control" id="exampleInputName2" name="key" placeholder="标题">
				</div>
				<button type="submit" class="btn btn-sm btn-default">搜索</button> -->
				<!--<div class="form-group">
					<button type="button" class="btn btn-sm btn-primary ">添加项目</button>
					<button type="button" class="btn btn-sm btn-primary ">列表轮播图管理</button>
				</div>-->
			<!-- </form> -->
		</div>
	</div>
	<table class="table table-striped table-bordered table-condensed  ">
		 <thead>
			<tr>
				<th>用户</th>
				<th>评论内容</th>
				<th>评论时间</th>
			</tr>
		</thead>
		<tbody>
			<volist name="list" id="li">
				<tr>
					<td >{$li.nickname}</td>
					<td>{$li.content}</td>
					<td style="text-align:center"><?php echo date('Y-m-d H:i:s',$li['ctime']) ?></td>
				</tr>
			</volist>
		</tbody>
	</table>

</div>
<script>
	$(function(){
			$('#delete').click(function(){
				
				$_this = $(this);
				if(confirm('确认删除吗?')){
					var url = "{:U('Bbs/del')}?id="+$(this).attr("d_id");
					$.get(url,function(obj){
						if(obj.s){
							$_this.parent().parent().remove();
						}
					});

				}
				return false;
			})
	})

</script>